{% extends "base.html" %}
{% load url from future %}
{% load humanize %}
{% load i18n %}

{% block content %}

    <h1>{% trans 'Advanced search' %}</h1>

    <strong>{% trans 'Galaxies' %}</strong> : <br />
    <form action="{% url 'advanced_search_result' %}" method="post">
        {% csrf_token %}
        <label for="g1">G1</label>
        <input type="checkbox" id="g1" name="galaxies" value="1" checked />
        <label for="g2">G2</label>
        <input type="checkbox" id="g2" name="galaxies" value="2" checked />
        <label for="g3">G3</label>
        <input type="checkbox" id="g3" name="galaxies" value="3" checked />
        <label for="g4">G4</label>
        <input type="checkbox" id="g4" name="galaxies" value="4" checked />
        <label for="g5">G5</label>
        <input type="checkbox" id="g5" name="galaxies" value="5"  checked />

        <hr />

        <strong>{% trans 'Solar Systems' %}</strong> : <br />
        <label for="ss_start">{% trans 'From' %} : </label>
        <input type="text" name="ss_start" value="0" size="4"/>
        <label for="ss_start">{% trans 'To' %} : </label>
        <input type="text" name="ss_end" value="2999" size="4" />

        <hr />

        <strong>{% trans 'Resources' %}</strong> : <br />
        <select name="resource">
            <option value="none">None</option>
            <option value="iron">{% trans 'Iron' %}</option>
            <option value="gold">{% trans 'Gold' %}</option>
            <option value="crystal">{% trans 'Crystal' %}</option>
            <option value="hydrogene">{% trans 'Hydrogene' %}</option>
            <option value="technicien">{% trans 'Techs.' %}</option>
        </select>

        <label for="quantity">{% trans 'Min. Quantity' %}</label>
        <input type="text" name="quantity" id="quantity" value="1000000" size="9" />


        <hr />
        <input type="submit" value="{% trans 'Search' %}" />

    </form>

{% endblock %}
